import axios from "axios";

const API_URL = "http://localhost:8080/app/myorder"

export const getMyOrderDetail=(userId,proId)=>{
    return axios.get(`${API_URL}/orderConfirm/${userId}/${proId}`)
}

export const saveMyOrder=(myorder)=>{
    return axios.post(`${API_URL}`,myorder)
}

export const getOrderByStatus=(requestParams)=>{
    return axios.get(`${API_URL}`,{params:requestParams})
}